package com.hd.trans.network.bean;


import java.util.List;

/**
 * Author:  yang
 * Date:    2020/01/15 13:59
 * Desc:    图片识别结果
 */

public class OCRImageResult {


    private String words;//识别图片的文字内容

    private OCRImageLocation location;//识别图片的文字矩形位置

    private List<VertexesLocationBean> vertexes_location;
    private Integer rowid;


    public static class VertexesLocationBean {
        private Integer x;
        private Integer y;

        public Integer getX() {
            return x;
        }

        public void setX(Integer x) {
            this.x = x;
        }

        public Integer getY() {
            return y;
        }

        public void setY(Integer y) {
            this.y = y;
        }
    }
    private boolean isChecked;


    public boolean isChecked() {
        return isChecked;
    }

    public void setChecked(boolean checked) {
        isChecked = checked;
    }

    public void toggleCheck() {
        isChecked = !isChecked;
    }


    public String getWords() {
        return words;
    }

    public void setWords(String words) {
        this.words = words;
    }

    public OCRImageLocation getLocation() {
        return location;
    }

    public void setLocation(OCRImageLocation location) {
        this.location = location;
    }

    public List<VertexesLocationBean> getVertexes_location() {
        return vertexes_location;
    }

    public void setVertexes_location(List<VertexesLocationBean> vertexes_location) {
        this.vertexes_location = vertexes_location;
    }

    public Integer getRowid() {
        return rowid;
    }

    public void setRowid(Integer rowid) {
        this.rowid = rowid;
    }

    @Override
    public String toString() {
        return "OCRImageResult{" +
                "words='" + words + '\'' +
                ", location=" + location +
                ", isChecked=" + isChecked +
                '}';
    }
}
